package com.ds.infrastructure.hyperspace.console.service.inf;

import com.ds.infrastructure.hyperspace.console.entity.table.TbStage;
import com.ds.infrastructure.hyperspace.console.service.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @author: yaozhendong
 * @create: 2019-09-20 09:19
 **/
public interface IStageService extends BaseService<TbStage> {

    TbStage getOrThrow(Long id);

    TbStage getOrThrow(Long id, String exceptionTitle);

    Map<Long, String> getTbStageMap(List<Long> stageIdList);

    TbStage getAndSave(String stageName, Long environmentId);

    List<TbStage> getAllByEnvironmentIds(List<Long> environmentIds);
}
